package com.bullsora.kindlerss.fulfillment;


import com.bullsora.kindlerss.model.Subscription
import demo.CustomPageRenderer
import grails.gsp.PageRenderer
import org.springframework.stereotype.Component

/**
 * @author sorin.buliarca@iquesint.com
 */
@Component
public class StructuredHtmlService {

  private static final String SUBSCRIPTION_TEMPLATE = "/fulfillment/subscriptionHtml";

  PageRenderer groovyPageRenderer

  CustomPageRenderer customPageRenderer
  
  public String generateHtmlForSubscription(Subscription subscription) {
//    groovyPageRenderer.render view: SUBSCRIPTION_TEMPLATE, model: ["subscription": subscription];
    customPageRenderer.render view: SUBSCRIPTION_TEMPLATE, model: ["subscription": subscription];
  }
}
